/*
 * @Description:
 * @Author: DHL
 * @Date: 2021-12-03 15:20:09
 * @LastEditors: DHL
 * @LastEditTime: 2022-06-07 17:49:29
 */
import { createApp } from 'vue'

import App from './App.vue'
import { setupStore } from './store'
import { setupRouter } from './router'
import { setupPlugins } from './plugins'
import { setupDirectives } from '/@/directives'
import { setupGlobalProperties } from './plugins/globalProperties'

import '/@/styles/index.scss' // global css

async function bootstrap() {
  const app = createApp(App)

  // 配置状态管理
  setupStore(app)

  // 配置路由
  setupRouter(app)

  // Vue绑定原型方法
  setupGlobalProperties(app)

  // 配置插件
  setupPlugins(app)

  // 注册指令
  setupDirectives(app)

  app.mount('#app')
}

bootstrap()
